package com.bl.weilan.dao.repository;


import com.bl.weilan.dao.model.TradePolicyEntity;
import com.bl.weilan.dao.model.TradeReportEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TradeReportRepository extends JpaRepository<TradeReportEntity, String> {
    Page<TradeReportEntity> findByTradeIdOrderByTimeDesc(String tradeId, Pageable pageable);
    Page<TradeReportEntity> findByTradeIdOrderByTimeAsc(String tradeId, Pageable pageable);
    List<TradeReportEntity> findByTradeId(String tradeId);

}
